<!--页面-->
<template>
    <view class="demo-container">
        <h1 @click="handleGo">登录</h1>
    </view>
</template>
<!--业务代码-->
<script name="demo" setup>
/** Base */

/** Data */

/** Method*/
const handleGo = async (val) => {
    let _ = proxy
    const { data: res } = await _.$H.post(_.$A.captcha, {})
    console.log('handleGo', 1)
    userStore.setToken(res.data.uuid)
    userStore.setName('wxb')
}

</script>
<!--样式-->
<style lang="scss" scoped>
    @import 'index.scss';
</style>
